import React from 'react'
import { Table, Tag, space } from 'antd';

class MyCooperativeList extends React.Component{
    render() {
        const columns = [
            {
                title: '序号',
                dataIndex: 'index',
                key: 'index',
            },
            {
                title: '店铺',
                dataIndex: 'name',
                key: 'name',
                render: text => <a>{text}</a>
            },
            {
                title: '资源名称',
                dataIndex: 'ResourceName',
                key: 'ResourceName',
            },
            ,
            {
                title: '资源类型',
                dataIndex: 'ResourceType',
                key: 'ResourceType',
            },
            {
                title: '服务机场',
                dataIndex: 'airport',
                key: 'airport',
            },
            {
                title: '服务航司',
                dataIndex: 'serverce',
                key: 'serverce',
            },
            {
                title: '签约时间',
                dataIndex: 'signingTime',
                key: 'signingTime',
            },
            {
                title: '申请时间',
                dataIndex: 'time',
                key: 'time',
            },
            {
                title: '状态',
                dataIndex: 'status',
                key: 'status',
            },
            {
                title: '操作',
                key: 'action',
                render: (text, record) => (
                <space size="middle">
                    {/* <a>Invite {record.name}</a> */}
                        <a>申请解约</a>&nbsp;
                        <a>调价</a>
                </space>
                ),
            },
        ];
        const dataSource = [
            {
                key: '1',
                index: 1,
                name: '上海店铺',
                ResourceName: '虹桥常规专车揽收-供应商',
                ResourceType: '揽收',
                airport: '上海虹桥',
                serverce: '不限',
                signingTime:'2020-11-05 10:12:05',
                time: '2020-10-16 10:12:05',
                status:'未处理'
            },
            {
                key: '2',
                index: 2,
                name: '上海店铺',
                ResourceName: '浦东常规专车揽收-供应商',
                ResourceType: '派送',
                airport: '上海虹桥',
                serverce: '不限',
                signingTime:'2020-11-05 10:12:05',
                time: '2020-10-16 10:12:05',
                status:'已发送待确认'
            },
        ];
        
        return (
            <div>
                <Table columns={columns} dataSource={dataSource} />
            </div>
        )
    }
}
export default MyCooperativeList